<?php
echo $this->Session->flash();
?>

<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>

<h1>PREDIOS PROYECTO <?php echo$cod; ?></h1>
<table  id="tabla" class="tabla" >
    <thead>
        <tr>
            <th>Código</th>
            <th>Nombre</th>
            <th colspan="4"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($properties as $prop): ?>
            <tr>
                <td><?php echo $prop['Property']['codigo'] ?></td>
                <td><?php echo $prop['Property']['nombre'] ?></td>
                <td>
                    <br><br>
                    <?php echo $ajax->link('Filtro información', array('controller' => 'propertyReviews', 'action' => 'index', $prop['Property']['id']), array('class' => 'actions', 'update' => 'content')); ?>
                    <?php echo $ajax->link('Propietarios', array('controller' => 'owners', 'action' => 'owner_index', $prop['Property']['id']), array('class' => 'actions', 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')); ?>
                    <br><br>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<br>
